package com.yohann.designPattern.bridge.client;

import com.yohann.designPattern.bridge.brand.ViVo;
import com.yohann.designPattern.bridge.brand.iPhone;
import com.yohann.designPattern.bridge.phone.FoldedPhone;

/**
 * <p>
 * 客户端
 * </p>
 *
 * @author Yohann
 * @since 2021/2/7 13:59
 */
public class Client {
    public static void main(String[] args) {
        FoldedPhone iphone = new FoldedPhone(new iPhone());

        /*
        Folded-iPhone open
        Folded-iPhone call
        Folded-iPhone close
         */
        iphone.open();
        iphone.call();
        iphone.close();

        FoldedPhone vivo = new FoldedPhone(new ViVo());

        /*
        Folded-ViVo open
        Folded-ViVo call
        Folded-ViVo close
         */
        vivo.open();
        vivo.call();
        vivo.close();
    }
}